package crontab

import (
	"fmt"
	"github.com/robfig/cron"
)

func Start() {
	c := cron.New()
	_ = c.AddFunc("30 * * * *", func() { fmt.Println("Every hour on the half hour") })
	c.Start()
	// Funcs are invoked in their own goroutine, asynchronously.
	// Funcs may also be added to a running Cron
	// Inspect the cron job entries' next and previous run times.
	//inspect(c.Entries())
	c.Stop() // Stop the scheduler (does not stop any jobs already running).
}
